package org.hbhk.hxl.gateway.controller;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class HttpTestController {

	RestTemplate restTemplate = new RestTemplate();

	// 3ee09a42aa5c4d5b91a698dd8ffa250f
	@RequestMapping("/testdaochu")
	public String test(String url, String CASTGC) {
		System.out.println(url);
		return HttpUtil.get(url, CASTGC);
	}

	public static void main(String[] args) throws UnsupportedEncodingException {
		System.out.println(URLDecoder.decode("https://yh.yimidida.com/galaxy-dms-business/delivery/payment/ansyExportExcel?bizType=&businessModel=&compCode=&createrBeginTime=2018-10-24T16:00:00.000Z&createrEndTime=2018-10-31T15:59:59.000Z&currentPage=1&destZoneCode=&dispatchEmpCode=&filterOldBack=false&gatherEmpCode=&gatherState=&pageSize=50&queryType=0&waybillType=", "UTF-8"));
	}
}
